import Action from "../actions/types";

export interface StateType {
    selectedCartList: number[]
}

const initialState: StateType = {
    selectedCartList: []
};

const handle: Record<string, (state: StateType, action: Action) => StateType> = {
    cartSelect: function (state, action) {
        return {...state, selectedCartList: action.payload};
    }
};

export default {initialState, handle}
